<header>


<script>

var HomePage = "http://www.theqi.com/buddhism/GL1/audio/"

var play_audio = function(){

var audio = document.getElementById("audio");

var Start_Time = document.getElementById("start_time");
var End_Time = 999999999;
var E_Time = document.getElementById("end_time");
if (E_Time.value > 0) { 
  End_Time = E_Time;
} 

audio.currentTime = Start_Time.value;

audio.addEventListener("timeupdate", function() {
if (audio.currentTime > End_Time.value ) {
audio.pause()
}

}
, true ) 
audio.play()

}

var change_tape = function(){
var TapeNo = document.getElementById("Tape_No");
var audio = document.getElementById("audio");

audio.setAttribute("src",HomePage+TapeNo.value+".MP3");
}

</script>

<form name="script">
<audio src='http://www.theqi.com/buddhism/GL1/audio/050B.MP3' id="audio" controls></audio>
<p>
<button type="button" onclick="play_audio()">Play</button>
<button type="button" onclick="audio.pause();">Pause</button>
<button type="button" onclick="change_tape()">Change</button>
</p>
<p>
Start Time:<input id="start_time">
</p>
<p>
End Time:<input id="end_time">
</p>
<p>
TapeDDDDo.:<input id="Tape_No">
</p>
</form> 

</header> 



</body>

